#pragma once

class CTwoPointDrawElem
{
public:
	CTwoPointDrawElem();
	CTwoPointDrawElem(CPoint b, CPoint e);
	CTwoPointDrawElem(int x1, int y1, int x2, int y2);

	//virtual ~CTwoPointDrawElem(void);
	
	void Clean();
	bool IsIncluded(const CRect &rect);
	void SetDefStyle();
public:
	CPoint	m_TopLeft;
	CPoint	m_RightBottom;

	COLORREF	m_Color;
	int			m_nWidth;
	int			m_nStyle;
};


class CLine: public CTwoPointDrawElem
{
public:
	bool Draw(CDC &cdc);
};

struct MSelectRect: public CTwoPointDrawElem
{
public:
	bool Draw(CDC &cdc);
};